import request from '@/utils/request'

// 查询叙词分类列表
export function listThesauriWordCategory(query) {
  return request({
    url: '/system/thesauriWordCategory/list',
    method: 'get',
    params: query
  })
}

// 查询叙词分类详细
export function getThesauriWordCategory(id) {
  return request({
    url: '/system/thesauriWordCategory/' + id,
    method: 'get'
  })
}

// 新增叙词分类
export function addThesauriWordCategory(data) {
  return request({
    url: '/system/thesauriWordCategory',
    method: 'post',
    data: data
  })
}

// 修改叙词分类
export function updateThesauriWordCategory(data) {
  return request({
    url: '/system/thesauriWordCategory',
    method: 'put',
    data: data
  })
}

// 删除叙词分类
export function delThesauriWordCategory(id) {
  return request({
    url: '/system/thesauriWordCategory/' + id,
    method: 'delete'
  })
}

// 导出叙词分类
export function exportThesauriWordCategory(query) {
  return request({
    url: '/system/thesauriWordCategory/export',
    method: 'get',
    params: query
  })
}